﻿Imports Windows.ApplicationModel.Background
Imports Windows.Networking.PushNotifications
Imports Windows.Storage

Public NotInheritable Class BackgroundTask
    Implements IBackgroundTask

    Public Sub Run(taskInstance As IBackgroundTaskInstance) Implements IBackgroundTask.Run
        Dim note = CType(taskInstance.TriggerDetails, RawNotification)
        Dim settings = ApplicationData.Current.LocalSettings
        Dim taskName = taskInstance.Task.Name
        settings.Values(taskName) = note.Content
    End Sub
End Class
